package com.oauth.linkedin.client.ui.handler;

import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.oauth.components.client.rpc.OAuthAsnyCallBack;
import com.oauth.linkedin.client.rpc.LinkedinRemoteServiceAsync;

public class StatusUpdateHandler implements ValueChangeHandler<String> {

	public StatusUpdateHandler() {
	}

	@Override
	public void onValueChange(ValueChangeEvent<String> pEvent) {
		LinkedinRemoteServiceAsync.INSTANCE.updateStatus(pEvent.getValue(),
				new OAuthAsnyCallBack<Boolean>() {
					@Override
					public void onSuccess(Boolean pResult) {

					}
				});
	}

}
